package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.Consult;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface ConsultMapper {
    int insertConsult(Consult consult);

    int updateConsult(Consult consult);

    int deleteConsult(int id);

    Consult findConsultById(int id);

    List<Consult> findAll(Consult consult);

    List<Consult> findAllReally();

    //根据name查询
    Consult findConsultByName(String name);

    List<HashMap<Integer,Object>> getCount();


}
